package com.twu.biblioteca;

import java.io.PrintStream;

/**
 * Created by balau on 3/10/14.
 */
public class MenuObject {

    private final PrintStream out;
    private Library library;

    public MenuObject(Library library, PrintStream out) {
        this.out = out;
        this.library = library;
    }

    public void implementChoice(String menuChoice) {
        if (menuChoice.equalsIgnoreCase("List books")) {
            library.printBooks();
        }
    }

    public boolean validateChoice(String menuChoice) {
        return menuChoice.equalsIgnoreCase("List books");
    }


}